<!DOCTYPE html>
<head>
	<title>{% block title%}{% endblock%}</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="{% static 'css/body.min.css' %}">
	{% block head%}{% endblock%}
</head>
<body>
	<div class="header">
			<div class="container">
				<div class="container-left">
					<a href="{% url 'index' %}">主页</a>
				</div>
				
				<div class='container-middle'>
					<ul>
						<li><a href="">创投资讯</a></li>
						<li><a href="">创业课堂</a></li>
						<li><a href="">凡卓资本</a></li>
						<li><a href="">创业服务</a></li>
						<li><a href="{% url 'search'%}">搜索</a></li>
					</ul>
				</div>

				<div class="container-right">
					{% if user.is_authenticated %}
						<a href="">{{user.username}}</a>
						{% if user.is_staff %}
							<form action="{% url 'xfzauth:cms_index'%}"><input type="submit" value="管理系统"></form>
						{% endif %}
						<form action="{% url 'xfzauth:logout'%}"><input type="submit" value="退出登陆"></form>
					{% else %}	
						<a href="{% url 'xfzauth:login'%}">登陆</a>
						<a href="{% url 'xfzauth:register'%}">注册</a>
					{% endif %}				
				</div>
			
			</div>

	</div>
	
	{% block main%}{% endblock%}

	<footer class="footer">
		<div class="top-group">
			<div class="top-inner-group">
				<div class="logo-box">
					<a href=""><img src="{% static '/images/logo-box.png'%}" alt=""></a>
				</div>
				<div class="detail-group">
					<div class="line1">
						<ul class="links">
							<li><a href="">关于小饭桌</a></li>
							<li><a href="">创业课堂</a></li>
							<li><a href="">寻求报道</a></li>
							<li><a href="">创业礼包</a></li>
						</ul>
						<div class="about-us">
							<span class="title">关于我们：</span>
						</div>
					</div>
					<div class="line2">
						<p class="address">地址：北京市朝阳区东三环北路38号院泰康金融大厦</p>
						<p class="contact">联系方式:400-810-1090 (工作日10点－18点)</p>
					</div>
				</div>
			</div>
		</div>

		<div class="bottom-group">
			©2018 北京子木投资顾问有限公司 京ICP备15051289号 | 增值电信业务经营许可证：京B2-20170574
		</div>
	</footer>
</body>
</html>